<!-- saved from url=(0014)about:internet -->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Product.as</title>
<link rel="stylesheet" type="text/css" href="../SourceStyles.css"/>
</head>

<body><pre><span class="ActionScriptpackage">package</span>
<span class="ActionScriptBracket/Brace">{</span>
    <span class="ActionScriptBracket/Brace">[</span><span class="ActionScriptMetadata">Bindable</span><span class="ActionScriptBracket/Brace">]</span>
    <span class="ActionScriptReserved">public</span> <span class="ActionScriptclass">class</span> <span class="ActionScriptDefault_Text">Product</span>
    <span class="ActionScriptBracket/Brace">{</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">catID</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">prodName</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">unitID</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">cost</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">listPrice</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">description</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">isOrganic</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">isLowFat</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">imageName</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>;
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">Product</span> <span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">_catID</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">_prodName</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>, <span class="ActionScriptDefault_Text">_unitID</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">_cost</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">_listPrice</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Number</span>, <span class="ActionScriptDefault_Text">_description</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span>,<span class="ActionScriptDefault_Text">_isOrganic</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>,    <span class="ActionScriptDefault_Text">_isLowFat</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Boolean</span>, <span class="ActionScriptDefault_Text">_imageName</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">)</span>
        <span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptDefault_Text">catID</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_catID</span>;
            <span class="ActionScriptDefault_Text">prodName</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_prodName</span>;
            <span class="ActionScriptDefault_Text">unitID</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_unitID</span>;
            <span class="ActionScriptDefault_Text">cost</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_cost</span>;
            <span class="ActionScriptDefault_Text">listPrice</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_listPrice</span>;
            <span class="ActionScriptDefault_Text">description</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_description</span>;
            <span class="ActionScriptDefault_Text">isOrganic</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_isOrganic</span>;
            <span class="ActionScriptDefault_Text">isLowFat</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_isLowFat</span>;
            <span class="ActionScriptDefault_Text">imageName</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptDefault_Text">_imageName</span>;
        <span class="ActionScriptBracket/Brace">}</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">toString</span><span class="ActionScriptBracket/Brace">()</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">String</span><span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptString">&quot;[yjy]&quot;</span><span class="ActionScriptOperator">+</span><span class="ActionScriptDefault_Text">prodName</span>;
        <span class="ActionScriptBracket/Brace">}</span>
        <span class="ActionScriptReserved">public</span> <span class="ActionScriptReserved">static</span> <span class="ActionScriptfunction">function</span> <span class="ActionScriptDefault_Text">create</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">o</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Object</span><span class="ActionScriptBracket/Brace">)</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Product</span><span class="ActionScriptBracket/Brace">{</span>
            <span class="ActionScriptvar">var</span> <span class="ActionScriptDefault_Text">p</span><span class="ActionScriptOperator">:</span><span class="ActionScriptDefault_Text">Product</span> <span class="ActionScriptOperator">=</span> <span class="ActionScriptReserved">new</span> <span class="ActionScriptDefault_Text">Product</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">catId</span>,<span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">catName</span>,<span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">unitID</span>,<span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">cost</span>,<span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">listPrice</span>,<span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">description</span>,<span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">isOrganic</span><span class="ActionScriptBracket/Brace">)</span>,<span class="ActionScriptDefault_Text">Boolean</span><span class="ActionScriptBracket/Brace">(</span><span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">isLowFat</span><span class="ActionScriptBracket/Brace">)</span>,<span class="ActionScriptDefault_Text">o</span>.<span class="ActionScriptDefault_Text">imageName</span><span class="ActionScriptBracket/Brace">)</span>;
            <span class="ActionScriptReserved">return</span> <span class="ActionScriptDefault_Text">p</span>;
        <span class="ActionScriptBracket/Brace">}</span>
    <span class="ActionScriptBracket/Brace">}</span>
<span class="ActionScriptBracket/Brace">}</span></pre></body>
</html>
